vt-d: Fix ioapic_rte_to_remap_entry error path.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Aug 2010 15:33:45 +0000 (16:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Aug 2010 15:33:45 +0000 (16:33 +0100)
commit22bcc5f006e8d68a9ea30b6cf871097b5536b00f
treeb33cdda3d6af9b96eb287e69f0cd73de2eda21d5
parent1cb3c0f2288ef1043eb7d1a318a226a1ebc3be1b
vt-d: Fix ioapic_rte_to_remap_entry error path.

When ioapic_rte_to_remap_entry fails, currently it just writes value
to ioapic. But the 'mask' bit may be changed if it writes to the upper
half of RTE. This patch ensures to recover the original value of 'mask'
bit in this case.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/intremap.c